<#if data.contract??> <#assign contract=data.contract>
<div class="row">
	<div class="col-md-12">
		<div class="bid-result" style="border: 1px solid #ddd; padding: 10px; margin-bottom: -1px; border-top: none;">
			<b class="text-danger">${contract.status.value}</b>
			<br>
			<small>
				签订日期：
				<b>${contract.signDate?string('yyyy-MM-dd')}</b>
			</small>
		</div>
	</div>
	<div class="col-md-12">
		<table class="table table-bordered" style="border: none;">
			<tr>
				<td class="text-center">
					<b>主要内容</b>
				</td>
				<td colspan="5">${contract.mainContent}</td>
			</tr>
			<tr>
				<td class="text-center">
					<b>合同名称</b>
				</td>
				<td colspan="5">${contract.name}</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>合同编号</b>
				</td>
				<td>${contract.no}</td>
				<td class="text-center" width="115">
					<b>合同金额</b>
				</td>
				<td>${(contract.price?string('currency'))!'-'}</td>
				<td class="text-center" width="115">
					<b>合同工期</b>
				</td>
				<td>${(contract.timeLimit?string('yyyy-MM-dd'))!'&lt;未知&gt;'}到期</td>
			</tr>
			<tr>
				<td class="text-center" width="115">
					<b>建设单位</b>
				</td>
				<td colspan="5">${contract.otherCompany}</td>
			</tr>
		</table>
	</div>
</div>
<div class="row contract-files">
	<#if contract.files??> <#setting url_escaping_charset='utf-8'> <#list contract.files as cf>
	<div class="col-md-6 file-item">
		<table style="margin: 15px 0;">
			<tr>
				<td class="text-center" width="70">
					<i class="icon-copy icon-2x text-success"></i>
					<br>
					<b class="text-success">
						<small>[${cf.type.value}]</small>
					</b>
				</td>
				<td>
					<a href="${request.contextPath}/download/${(cf.filePath?url)?url}/${((cf.fileName+cf.suffix)?url)?url}" target="_blank"> ${cf.fileName}${cf.suffix} </a>
					<div>
						<small style="margin-right: 10px;">${cf.uploadTime?string('yyyy-MM-dd HH:mm:ss')}</small>
						<small>${cf.fileSizeString}</small>
					</div>
				</td>
				<#if roles.htzzOp>
				<td class="text-center" width="50">
					<a href="javascript:void(0);" title="删除文件" target="_blank" class="remove-contract-file" data-id="${cf.id}">
						<i class="icon-remove text-danger"></i>
					</a>
				</td>
				</#if>
			</tr>
		</table>
	</div>
	</#list> </#if>
</div>
</#if>
